package com.gu.VO;

import java.util.List;

/**
 * @ProjectName: apartment-management-center
 * @Package: com.gu.VO
 * @ClassName: WangEditorVO
 * @Author: gusongliao
 * @Description: 富文本编辑器返回VO类
 * @createDate 2021/03/19 22:09
 */
public class WangEditorVO {

    private Integer errno;
    private Object data;


    public static WangEditorVO success(Object data){
        WangEditorVO wangEditorVO = new WangEditorVO();
        wangEditorVO.errno = 0;
        wangEditorVO.data = data;
        return wangEditorVO;
    }

    public static WangEditorVO error(Integer errno, Object data){
         WangEditorVO wangEditorVO = new WangEditorVO();
         wangEditorVO.errno = errno;
         wangEditorVO.data = data;
         return wangEditorVO;
    }

    public Integer getErrno() {
        return errno;
    }

    public void setErrno(Integer errno) {
        this.errno = errno;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
